const postcss = require('postcss');

module.exports = postcss.plugin('remove-flex-display', () => {
  return root => {
    root.walkRules(rule => {
      console.log("🚀 ~ file: postcss.config.js:6 ~ module.exports=postcss.plugin ~ rule :", rule.selector );
      rule.walkDecls('display', decl => {
        if (decl.value === 'flex') {
          rule.remove();
        }
      });
    });
  };
});